package com.erp.app.catalog.itemLine.dao;

import java.sql.Connection;
import java.util.ArrayList;

import com.erp.app.catalog.itemLine.vo.ItemLineVo;
import com.erp.framework.exceptions.DbObjectException;
import com.erp.framework.model.vo.SimpleBaseVo;
import com.erp.framework.util.logger.Logger;

public class ItemLineCommonDao {

	public void removeRelateChilds(SimpleBaseVo model, Connection conn) throws Exception {
		String spName = "sp_del_item_line";
        ArrayList args = new ArrayList();

        ItemLineVo vo = (ItemLineVo) model;
        try {
            args.add(vo.getItemLine());
//            args.add(vo.getCompanyCode());
            
//            DbObjectUtil.callSp(spName, args, conn);
        } catch (Exception e) {
            Logger.logExceptions(this, e);
            throw new DbObjectException(e.getMessage());
        }
		
	}
//	 syn other companies' record if this master share among companies
	/*public void updateMasterRecord(SimpleBaseVo model, Connection conn) throws Exception {
		ItemLineVo vo = (ItemLineVo) model;
		String spName = "SP_UPD_MST_ITEM_LINE";
		
		ArrayList args = new ArrayList();
		args.add(vo.getCompanyCode()); // in_company_code
		args.add(ProjectConstants.DOC_TYPE_ITEM_LINE); // in_type
		args.add(vo.getItemLine()); // in_code
		DbObjectUtil.callSp(spName, args, conn);
	}*/
}
